
import Vue from 'vue'
import Router from 'vue-router'
import router from './index'
import { constantRouterMap } from '@/config/router.config'

export default function resetRouter() {
    const newRouter = new Router({
        mode: 'history',
        routes: constantRouterMap
    });
    router.matcher = newRouter.matcher;
}